<?php
/* @var $this TuanController */

?>

	<tr>
		<td class="pro tl">
			<?php echo CHtml::checkBox('id[]','',array('class'=>'chk f_l chkitem','onclick'=>'CheckList("ids[]","id[]")','value'=>$data->zpt_id))?>
			<span>
			<div class="c_img c_img50"><?php echo CHtml::link(Tool::thumb($data->zpt_pic,50,50,$data->zpt_title),'javascript:',array('class'=>''))?></div>
			<p class="title_pro line_18"><?php echo CHtml::link(mb_substr($data->zpt_title,0,12,'utf8'),'javascript:',array('class'=>''))?></p>
			</span>
		</td>
		<td width="20%"><?php echo date('Y-m-d H:i',$data->zpt_start_time)?>-<br /><?php echo date('Y-m-d H:i',$data->zpt_end_time)?></td>
		<td width="15%"><?php echo CHtml::link(mb_substr($data->company->zc_name,0,20,'utf8'),$data->company->domain,array('class'=>''))?></td>
		<td width="13%"><span class="d_b fs_14">&yen; <strong class="c_f60 ff_yh"><?php echo $data->zpt_price?></strong></span><span class="c_999">&yen; <del class="ff_yh"><?php echo $data->zpt_saleprice?></del></span></td>
		<td width="10%">
			<?php
				if($data->zpt_status==1){
					echo '<span class="c_f60">待审核</span>';
				}elseif($data->zpt_status==2){
					 if($data->zpt_start_time>time()){
							echo '<span class="c_green3">未开始</span>';
						}elseif($data->zpt_end_time<time()){
							echo '<span class="c_999">已结束</span>';
						}else{
							if($data->zpt_close==1){
								echo '<span class="c_f60">进行中</span>';
							}elseif($data->zpt_close==2){
								echo '<span class="c_999">已关闭</span>';
							}
						}
				}elseif($data->zpt_status==3){
					echo '<span class="c_999">未通过</span>';
				}
			?>
		</td>
		<td  class="operate" width="12%">
			<?php if($data->zpt_status==1) echo CHtml::link(Yii::t('adm','Check Status'),'javascript:',array('class'=>'c_06c check_status'))?>
			<?php if($data->zpt_status==3){?>
				<?php echo CHtml::link(Yii::t('glo','View'),'javascript:',array('class'=>'c_06c view'))?>
				<div class="box">
					<div class="view_box">
	                      <span class="man_bg view_bg"></span>
	                      <h3 class="c_f60">审核不通过的原因</h3>
	                      <p class="tuan_info"><?php echo CHtml::encode($data->zpt_nostatus)?></p>
	                 </div>
                 </div>
			<?php }?>
			<?php echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/manage/tuan/delete/id/'.$data->zpt_id.'","你确定要删除这条信息吗？")'))?>
		</td>
	</tr>
